joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xa4]
mov ebp, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xa4], ebp
push eax
push 0xf003f
push 0
push str.Hardwaredevicemap_serialcomm
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405a56
push str.COM2
push 0x416380
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ecx
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x74]
push eax
push ecx
mov ebx, 0x40
push 0
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov esi, ebp
call edi
test eax, eax
jne 0x405ad3
lea eax, [esp + 0x27]
push eax
call fcn.0040a750
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
mov dword [esp + eax*4 + 0xa4], ebp
push ecx
push edx
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x74]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x34], ebx
inc esi
call edi
test eax, eax
je 0x405a90
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea ecx, [esp + 0xa4]
cmp dword [ecx], 0
je 0x405b02
inc eax
add ecx, 4
cmp eax, 0x64
jb 0x405ae7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
lea edx, [esp + 0x1c]
push 0xa
push edx
push eax
call fcn.0040a600
add esp, 0xc
push 0x410eb4
push 0x416380
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
push 0x416380
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret

Function at 0x405c10
Capabilities:
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x415ce0
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x108]
push 0x410350
push ecx
call esi
mov edx, dword [esp + 0x20c]
lea eax, [esp + 0x108]
push edx
push eax
call esi
lea ecx, [esp + 8]
push 0x415ce0
push ecx
call edi
lea edx, [esp + 8]
push 0x410350
push edx
call esi
mov eax, dword [esp + 0x210]
lea ecx, [esp + 8]
push eax
push ecx
call esi
cmp byte [0x41600c], 7
jne 0x405ca0
lea edx, [esp + 8]
lea eax, [esp + 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
add esp, 0x200
ret
lea ecx, [esp + 8]
push 1
lea edx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
add esp, 0x200
ret
Function at 0x405f00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x415080
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x415080
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 3
jle 0x405f3c
lea ecx, [esp + 0x10]
push 0x410350
push ecx
call esi
mov edi, dword [esp + 0x258]
lea edx, [esp + 0x10]
push edi
push edx
call esi
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405fed
mov ebp, dword [esp + 0x254]
push str..cat
push edi
call fcn.0040a100
add esp, 8
test eax, eax
je 0x405fc2
mov eax, dword [0x414484]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
lea edx, [eax + eax*4]
inc eax
mov dword [0x414484], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*8 + 0x414b40]
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]
mov edi, dword [esp + 0x258]
lea ecx, [esp + 0x13c]
push ecx
push ebp
call fcn.00403040
add esp, 8
lea edx, [esp + 0x110]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push str..cat
push edi
call fcn.0040a100
add esp, 8
test eax, eax
je 0x406014
mov eax, dword [0x414484]
mov ecx, dword [0x4106b8]
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x414b40], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret

Function at 0x406020
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
lea eax, [esp]
push ebx
push esi
push edi
push 0x415080
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x415080
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 3
jle 0x40605b
lea ecx, [esp + 0xc]
push 0x410350
push ecx
call esi
mov edx, dword [esp + 0x254]
lea eax, [esp + 0xc]
push edx
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060b8
mov edi, dword [esp + 0x250]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x138]
push eax
push edi
call fcn.00403040
add esp, 8
lea ecx, [esp + 0x10c]
push ecx
push esi
call ebx
test eax, eax
jne 0x406091
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
add esp, 0x240
ret
Function at 0x406cd0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ac
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], str.EnumRootModem
mov dword [esp + 0x28], str.SystemCurrentControlSetServicesClassModem
mov dword [esp + 0x2c], 0x410be0
mov dword [esp + 0x30], str.Manufacturer
mov dword [esp + 0x10], esi
mov edi, dword [esp + esi + 0x24]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push 0x80000002
call ebp
test eax, eax
jne 0x406ebf
xor esi, esi
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x24c]
mov eax, esi
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x3c], pe_nt_image_headers32
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406eb0
lea eax, [esp + 0x13c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x13c]
push 0x410350
push ecx
call ebx
lea edx, [esp + 0x23c]
lea eax, [esp + 0x13c]
push edx
push eax
call ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x13c]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x406ea0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + edx + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ea0
lea edx, [esp + 0x3c]
push edx
call fcn.0040a330
mov eax, dword [0x410060]
add esp, 4
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406e8c
mov edx, dword [str.LUCENT]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406e8c
mov ecx, dword [str.AGERE]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406e8c
mov eax, dword [str.COMPAQ]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406e8c
mov edx, dword [str.TOSHIBA]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406e8c
mov eax, dword [0x414470]
test eax, eax
je 0x406ea0
lea ecx, [esp + 0x3c]
push 0x4149e0
push ecx
call fcn.0040a100
add esp, 8
test eax, eax
je 0x406ea0
lea edx, [esp + 0x13c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d2e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
add esi, 4
cmp esi, 8
mov dword [esp + 0x10], esi
jb 0x406d0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret
Function at 0x406ee0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [str.SoftwareLucent]
mov ecx, dword [0x4110f8]
mov edx, dword [0x4110fc]
mov dword [esp + 0x14], eax
mov eax, dword [0x411100]
mov dword [esp + 0x18], ecx
mov ecx, dword [str.SoftwareAgere]
mov dword [esp + 0x20], eax
mov eax, dword [0x4110ec]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4110e8]
mov dword [esp + 0xc], eax
mov eax, dword [str.SoftwareToshiba]
mov dword [esp + 4], ecx
mov cx, word [0x4110f0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4110dc]
mov dword [esp + 8], edx
mov dl, byte [0x4110f2]
mov word [esp + 0x10], cx
mov ecx, dword [0x4110d4]
mov dword [esp + 0x30], eax
mov eax, dword [0x410220]
mov byte [esp + 0x12], dl
mov edx, dword [0x4110d8]
mov dword [esp + 0x28], ecx
mov cl, byte [0x4110e0]
cmp eax, 3
push esi
mov dword [esp + 0x30], edx
mov byte [esp + 0x38], cl
jne 0x406f92
lea edx, [esp + 4]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
jmp 0x406fb0
cmp eax, 4
push 0
jne 0x406fc1
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407014
jmp 0x406fe7
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407014
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push str.CleanUpRegistry
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x38
ret
Function at 0x407020
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [str.SoftwareLucent]
mov ecx, dword [0x4110f8]
mov edx, dword [0x4110fc]
mov dword [esp + 0x14], eax
mov eax, dword [0x411100]
mov dword [esp + 0x18], ecx
mov ecx, dword [str.SoftwareAgere]
mov dword [esp + 0x20], eax
mov eax, dword [0x4110ec]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4110e8]
mov dword [esp + 0xc], eax
mov eax, dword [str.SoftwareToshiba]
mov dword [esp + 4], ecx
mov cx, word [0x4110f0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4110dc]
mov dword [esp + 8], edx
mov dl, byte [0x4110f2]
mov word [esp + 0x10], cx
mov ecx, dword [0x4110d4]
mov dword [esp + 0x30], eax
mov eax, dword [0x410220]
mov byte [esp + 0x12], dl
mov edx, dword [0x4110d8]
mov dword [esp + 0x28], ecx
mov cl, byte [0x4110e0]
cmp eax, 3
push esi
mov dword [esp + 0x30], edx
mov byte [esp + 0x38], cl
jne 0x4070d2
lea edx, [esp + 4]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
jmp 0x4070f0
cmp eax, 4
push 0
jne 0x407101
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407154
jmp 0x407127
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407154
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push str.CabsFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x38
ret
Function at 0x407160
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [str.SoftwareLucent]
mov ecx, dword [0x4110f8]
mov edx, dword [0x4110fc]
mov dword [esp + 0x14], eax
mov eax, dword [0x411100]
mov dword [esp + 0x18], ecx
mov ecx, dword [str.SoftwareAgere]
mov dword [esp + 0x20], eax
mov eax, dword [0x4110ec]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4110e8]
mov dword [esp + 0xc], eax
mov eax, dword [str.SoftwareToshiba]
mov dword [esp + 4], ecx
mov cx, word [0x4110f0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4110dc]
mov dword [esp + 8], edx
mov dl, byte [0x4110f2]
mov word [esp + 0x10], cx
mov ecx, dword [0x4110d4]
mov dword [esp + 0x30], eax
mov eax, dword [0x410220]
mov byte [esp + 0x12], dl
mov edx, dword [0x4110d8]
mov dword [esp + 0x28], ecx
mov cl, byte [0x4110e0]
cmp eax, 3
push esi
mov dword [esp + 0x30], edx
mov byte [esp + 0x38], cl
jne 0x407212
lea edx, [esp + 4]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
jmp 0x407230
cmp eax, 4
push 0
jne 0x407241
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407294
jmp 0x407267
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407294
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push str.ModemType
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x38
ret
Function at 0x4072a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [str.SoftwareLucent]
mov ecx, dword [0x4110f8]
mov edx, dword [0x4110fc]
mov dword [esp + 0x14], eax
mov eax, dword [0x411100]
mov dword [esp + 0x18], ecx
mov ecx, dword [str.SoftwareAgere]
mov dword [esp + 0x20], eax
mov eax, dword [0x4110ec]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4110e8]
mov dword [esp + 0xc], eax
mov eax, dword [str.SoftwareToshiba]
mov dword [esp + 4], ecx
mov cx, word [0x4110f0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4110dc]
mov dword [esp + 8], edx
mov dl, byte [0x4110f2]
mov word [esp + 0x10], cx
mov ecx, dword [0x4110d4]
mov dword [esp + 0x30], eax
mov eax, dword [0x410220]
mov byte [esp + 0x12], dl
mov edx, dword [0x4110d8]
mov dword [esp + 0x28], ecx
mov cl, byte [0x4110e0]
cmp eax, 3
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], cl
jne 0x407351
lea edx, [esp]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x3c]
push 0
push eax
jmp 0x40736f
cmp eax, 4
push 0
jne 0x407380
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4073d7
jmp 0x4073a6
lea eax, [esp + 4]
lea ecx, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4073d7
push 0x4149e0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp]
inc eax
push eax
push 0x4149e0
push 1
push 0
push 0x410be0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x38
ret
Function at 0x407440
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x260
mov ecx, dword [0x411144]
mov eax, dword [str.NTMPDriver]
mov dword [esp + 0x1c], ecx
mov ecx, dword [str.ltmdm]
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov ecx, 0xc
mov esi, str.SystemCurrentControlSetServicesClassWDM_MODEM
lea edi, [esp + 0x38]
mov dx, word [0x411148]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
mov al, byte [0x41114a]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [esp + 0x2e], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push 0x20019
mov word [esp + 0x34], dx
mov dx, word [0x41113c]
push 0
push ecx
push 0x80000002
mov word [esp + 0x30], dx
movsw word es:[edi], word [esi]
call ebp
test eax, eax
jne 0x4075bf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x100]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x38], pe_nt_image_headers32
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4075b3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x70]
push ecx
push edx
call ebx
lea eax, [esp + 0x70]
push 0x410350
push eax
call edi
lea ecx, [esp + 0xf0]
lea edx, [esp + 0x70]
push ecx
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x4074ce
lea edx, [esp + 0x24]
lea eax, [esp + 0x170]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4075a3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x170]
push eax
push ecx
call fcn.0040a100
add esp, 8
test eax, eax
je 0x4075a3
lea edx, [esp + 0x70]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4074ce
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x260
ret
Function at 0x407750
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x298
lea eax, [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x414498
push eax
call edi
lea ecx, [esp + 0x268]
push 0x414498
push ecx
call edi
lea edx, [esp + 0x28]
push 0x410088
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push 0x410120
push 0x80000002
call ebp
test eax, eax
jne 0x40793e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x1f8]
mov eax, ebx
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x38], pe_nt_image_headers32
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x407933
lea eax, [esp + 0x68]
push 0x410120
push eax
call edi
lea ecx, [esp + 0x68]
push 0x410350
push ecx
call esi
lea edx, [esp + 0x1e8]
lea eax, [esp + 0x68]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x68]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x407913
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xe8]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x34]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407913
mov ecx, dword [0x410060]
lea edx, [esp + 0xe8]
push ecx
push edx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov eax, dword [str.LUCENT]
lea ecx, [esp + 0xe8]
push eax
push ecx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov edx, dword [str.AGERE]
lea eax, [esp + 0xe8]
push edx
push eax
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov ecx, dword [str.COMPAQ]
lea edx, [esp + 0xe8]
push ecx
push edx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov eax, dword [str.TOSHIBA]
lea ecx, [esp + 0xe8]
push eax
push ecx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov eax, dword [0x414470]
test eax, eax
je 0x407913
lea edx, [esp + 0xe8]
push 0x4149e0
push edx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407923
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4077b5
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x298
ret
Function at 0x407960
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x350
mov eax, dword [str..inf]
mov cx, word [0x41107c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea edx, [esp + 0x11c]
push 0x414498
push edx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
call esi
mov ebp, dword [esp + 0x364]
lea eax, [esp + 0x11c]
push ebp
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x11c]
push 0x410350
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x11c]
push edx
push eax
call edi
lea ecx, [esp + 0x220]
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407a4c
lea eax, [esp + 0x18]
push 0x414498
push eax
call esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call esi
lea edx, [esp + 0x18]
push 0x410350
push edx
call edi
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call fcn.00407a60
mov al, byte [0x41600c]
add esp, 4
cmp al, 3
jne 0x407a39
lea eax, [esp + 0x18]
push eax
call fcn.00407b80
add esp, 4
lea ecx, [esp + 0x220]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079e7
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x407a60
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x140
mov al, byte [0x414498]
push esi
mov esi, dword [esp + 0x148]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x10]
push 0x38
lea edx, [esp + 0x13]
push ecx
push edx
push str.Class
push str.Version
mov byte [esp + 0x23], al
mov byte [esp + 0x24], 0
call edi
lea eax, [esp + 0xc]
push str.Nodevice
push eax
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407ac8
lea ecx, [esp + 0xc]
push str.DisabledModemClass
push ecx
call fcn.0040a7c0
add esp, 8
test eax, eax
jne 0x407b12
push esi
lea edx, [esp + 0x10]
push 0x38
lea eax, [esp + 0x13]
push edx
push eax
push 0x410be0
push str.Strings
mov byte [esp + 0x24], 0
call edi
lea ecx, [esp + 0xc]
push 0x411150
push ecx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407b1d
lea edx, [esp + 0xc]
push str.LUCENT
push edx
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x407b1d
xor eax, eax
pop edi
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x48]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x44]
push 0x41114c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push pe_nt_image_headers32
push esi
call edi
lea edx, [esp + 0x44]
push pe_nt_image_headers32
push edx
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea eax, [esp + 0x44]
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret